<?php
use yii\widgets\ActiveForm;
?>
<link rel="stylesheet" href="../static/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../static/jBox/Skins/Metro/jbox.css" type="text/css">
<link rel="stylesheet" href="../static/dist/css/AdminLTE.min.css" type="text/css">
<link rel="stylesheet" href="../static/css/admin.css" type="text/css">
<link rel="stylesheet" href="../static/plugins/treeTable/jquery.treetable.css" type="text/css">
<link rel="stylesheet" href="../static/plugins/treeTable/jquery.treetable.theme.default.css" type="text/css">
<link rel="stylesheet" href="../static/plugins/datatables/jquery.dataTables.css" type="text/css">
<style>
.ul_tree_display {
	display: none;
}

.tr_tree_display {
	display: none;
}

.table>tbody>tr>td {
	vertical-align: middle;
	font-size: 0.8em;
}

.layui-layer-content p {
	padding: 15px;
}

.dataTables_length {
	margin-top: 10px;
}
</style>
<div class="tabs-panel">
	<div class="row">
		<div class="col-xs-12">
			<div class="box">
				<div class="box-header">
					<form action="/service-vip/get-service-vip" id="service-vip-select" method="post">
						<input name="is_export" id="is_export" value="1" type="hidden"/>
    					<label>服务类型：</label>
                        <select id="service_type" name="service_type" class="depart-input" style="width: 150px">
                            <option value="">请选择</option>
                            <?php if (is_array($sys_config) && count($sys_config) > 0)foreach($sys_config as $value){?>
                                <option value="<?= $value['config_key']?>"><?= $value['config_title']?></option>
                            <?php }?>
                        </select>&nbsp;
                        <label>处理状态：</label>
                        <select id="status" name="status" class="depart-input" style="width: 150px">
                        	<option value="">全部</option>
                            <option selected value="0">未处理</option>
                            <option value="1">已处理</option>
                        </select>&nbsp;
    					<button type="button" class="btn btn-primary depart-modal" onclick="table_list_reload()" style="width: 100px;">查询</button> &nbsp;
                        <button type="button" class="btn btn-warning depart-modal" id="reset_button" style="width: 100px;">重置</button>
                        <a href="javascript:void(0)" onclick="exportServiceVip()" style="margin-left:20px;font-size:16px;text-decoration:underline ;">Excel导出</a>
                    </form>
				</div>
				<div class="box-body">
					<table id="table_list" class="table table-bordered table-hover">
						<thead>
							<tr>
								<th class="">提交时间</th>
								<th class="">服务项目</th>
								<th class="">需求时间</th>
								<th class="">姓名</th>
								<th class="">手机号</th>
								<th class="">备注</th>
								<th class="">已处理</th>
								<th class="">操作</th>
							</tr>
						</thead>
						<tbody>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="modal fade" id="service-vip-modal" style="background: rgba(236, 230, 230, 0.3);" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width: 50%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">vip服务详情</h4>
            </div>
            <div class="modal-body">
                <form action="/service-vip/save-sysmemo" method="post" name="service_vip_form" id="service_vip_form">
                    <div class="box-body">
                    	<div class="form-group">
                            <label for="tag_group_id_add">服务类型：</label><span class="service_type_name"></span>
                        </div>
                        <div class="form-group">
                            <label for="tag_group_id_add">需求时间：</label><span class="create_time"></span>
                        </div>
                        <div class="form-group">
                            <label for="tag_group_id_add">申请编号：</label><span class="service_code"></span>
                        </div>
                        <div class="form-group">
                            <label for="tag_group_id_add">姓名：</label><span class="cust_name"></span>
                        </div>
                        <div class="form-group">
                            <label for="tag_group_id_add">联系方式：</label><span class="cust_tel"></span>
                        </div>
                        <div class="form-group hide">
                            <label for="tag_group_id_add">备注：</label>
							<textarea class="form-control" style="width: 50%;" rows="" id="sys_memo" name="sys_memo" cols=""></textarea>
                        </div>
                        <div class="form-group hide">
                            <label for="tag_group_id_add" class="col-sm-1 control-label">省：</label>
							<div class="col-sm-2">
								<span class="province_name"></span>
							</div>
							<label for="tag_group_id_add" class="col-sm-1 control-label">市：</label>
							<div class="col-sm-2">
								<span class="city_name"></span>
							</div>
							<label for="tag_group_id_add" class="col-sm-2 control-label">县/区：</label>
							<div class="col-sm-2">
								<span class="area_name"></span>
							</div>
                        </div><br><br>
                        <div class="form-group hide">
                            <label for="tag_group_id_add">详细地址：</label><span class="address"></span>
                        </div>
                        <input name="service_vip_id" id="service_vip_id" value="" type="hidden"/>
                    </div>
                    <div class="modal-footer">
                    	<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                		<a type="button" class="btn btn-primary ajax_post_tag">提交</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="service-vip-log-modal" style="background: rgba(236, 230, 230, 0.3);" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width: 50%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">操作记录</h4>
            </div>
            <div class="modal-body">
                <form action="/service-vip/save-vip-service-log" method="post" name="service_log_vip_form" id="service_log_vip_form">
                    <div class="box-body">
                    	<div class="col-sm-12 old_service_log">
                            <label for="tag_group_id_add">联系记录</label>
                        </div>
                        <div class="col-sm-12">
                            <label for="tag_group_id_add">联系记录：</label>
							<textarea class="form-control" style="width: 75%;" rows="" id="record" name="record" cols=""></textarea>
                        </div>
                        <input name="service_vip_id" value="" type="hidden"/>
                    </div>
                    <div class="modal-footer">
                    	<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                		<a type="button" class="btn btn-primary ajax_post_tag">提交</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!-- 固定js -->
<script type="text/javascript" src="/static/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script type="text/javascript" src="/static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/plugins/datatables/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/static/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script type="text/javascript" src="/static/jBox/jquery.jBox-2.3.min.js"></script>
<script type="text/javascript" src="/static/jBox/i18n/jquery.jBox-zh-CN.js"></script>
<script type="text/javascript" src="/static/plugins/treeTable/jquery.treetable.js"></script>
<!-- 自定义js -->
<script type="text/javascript" src="../static/app/global.js?version=<?=Yii::$app->params['version']?>"></script>
<script type="text/javascript" src="/static/app/service-vip/list.js?version=<?=Yii::$app->params['version']?>"></script>